import request from "@/utils/request";

// 发送验证码
export const sendCodeAPI = (email) => {
  return request.post("/admin/auth/send-code", { email });
}

// 验证验证码
export const verifyCodeAPI = (code) => {
  return request.post("/admin/auth/verify-code", { code });
}

// 管理员注册
export const adminRegisterAPI = (data) => {
  return request.post("/admin/auth/register", data);
}

// 管理员登录
export const adminLoginAPI = (data) => {
  return request.post("/admin/auth/sign_in", data);
}